cssnode: Don't put wrong styles in the style cache
authorBenjamin Otte <otte@redhat.com>
Tue, 10 Oct 2017 19:00:46 +0000 (21:00 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 10 Oct 2017 19:45:18 +0000 (21:45 +0200)
commit0836e8cf59e153a1a7b4b03fe224458bda9bca73
treee0ef81a44136ef3c66572ab010f4f2bb76660322
parenta22ef67b17bfa6e5470fe3115fd74b2de0fc36b3
cssnode: Don't put wrong styles in the style cache

~Company ╡ so TL;DR: we put the static style in the cache, but then
       ⤷ ╡ compute a child style from the animated style in the cache
       ⤷ ╡ and we put the child style also in the cache (because
       ⤷ ╡ it's not animated)
       ⤷ ╡ then we run the animation, but reuse the cache every time
       ⤷ ╡ for both child and parent
       ⤷ ╡ so after the animation is done, we end up with a cache that
       ⤷ ╡ has the correct static style for the parent but an
       ⤷ ╡ incorrect static style for the child
       ⤷ ╡ because that static style was computed from the
       ⤷ ╡ initial animated style

This fixes https://bugzilla.gnome.org/show_bug.cgi?id=763517
gtk/gtkcssnode.c